<?php
/**
 * @package Bike
 * @subpackage Db
 */

/**
 * Database Exceptions
 * @author Chrome
 * @package Bike
 * @subpackage Db
 */
class Bike_Db_Exception extends Bike_Exception {
	
	/**
	 * Requured php extension is not loaded code
	 * @var int
	 */
	const REQUIRED_EXTENSION_NOT_LOADED = 1;
	
	/**
	 * Error in query code
	 * @var int
	 */
	const QUERY_ERROR = 2;
	
	/**
	 * Mysql can't connect to database host code
	 * @var int
	 */
	const MYSQL_CANT_CONNECT_TO_HOST = 1045;
	
	/**
	 * No access to mysql database code
	 * @var int
	 */
	const MYSQL_ACCESS_TO_DATABASE_DENIED = 1044;
	
	/**
	 * No such database on mysql server code
	 * @var int
	 */
	const MYSQL_NO_SUCH_DATABASE = 1044;
}